<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div{
            width: 200px;
            height: 200px;
            background-color: red;
            /*  display: none;  */
        }
    </style>
</head>
<body>
    <button>点击</button>
        <div></div>
</body>
</html>
<script src="./lib/jquery.min.js"></script>
<script>

   $(()=>{
      $("button").click(()=>{
        //$("div").show();
       /*  $("div").show(2000,"linear",()=>{
            alert('over');
        }); */

       /*  $("div").hide(2000,"linear",()=>{
            alert('over');
        });
 */


  /*  $("div").toggle(2000,"linear",()=>{
            alert('over');
        })
      })*/

      /* $("div").slideDown(2000,"linear",()=>{
            alert('over');
        })
      }) */

     /*  $("div").slideUp(2000,"linear",()=>{
            alert('over');
        })
      }) */

      $("div").slideToggle(2000);
      });

   }) 




</script>